package com.beijiteshop.shop.ui.category.repo

import com.beijiteshop.libcommon.network.ext.BaseRsp
import com.beijiteshop.shop.model.api.response.CategoryBean
import com.beijiteshop.shop.model.api.response.ProductBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/10 19:24
 * @Description
 */
interface CategoryService {

    @GET("/api/goodtype/getgoodtype")
    fun getCategories(): Call<BaseRsp<List<CategoryBean>>>

    @GET("/api/goods/gettypegoods")
    fun getCategoryProducts(@Query("page")page: Int,@Query("typeId") typeId: String): Call<BaseRsp<MutableList<ProductBean>>>
}